﻿<?php

session_start();
if(empty($_SESSION['username'])||($_SESSION['username']!="管理员"))
{
	echo "<script language=JavaScript>alert('您无权访问该页面!'); window.location='index.php';</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>学生成绩查询</title>
<meta name="author" content="Codrops" />
<!-- jquery js -->
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript"  src="js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"/>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- end -->
<!-- 以下部分是menu需要的css 和js -->

<script type='text/javascript' src='js/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript' src='js/jquery.dcmegamenu.1.3.3.js'></script>
<!-- end  -->
<link rel="shortcut icon" href="../favicon.ico">
<link rel='stylesheet' type='text/css' href='css/jquery.kwicks.css' />
<!-- local page css -->
<link rel="stylesheet" type="text/css" href="css/jiemian.css"/>


<script src="js/modernizr.custom.63321.js"></script>


<!--[if lte IE 7]><style>.main{display:none;} .support-note .note-ie{display:block;}</style>
<![endif]-->
<!-- 放到head.php中
 <script type="text/javascript">
 $(document).ready(function($){
	 $('#mega-menu-9').dcMegaMenu({
			rowItems: '3',
			speed: 'fast',
			effect: 'fade'
		});
 });
 </script>
   -->
 <!--  取消tooltip 
 <script>

$(function() {
$( document ).tooltip();
//mega menu codes:

});
</script>
-->
<style>
label {
display: inline-block;
width: 5em;
}
</style>
<style type='text/css'>
			.kwicks {
				width: 515px;
				height: 100px;
			}
			.kwicks > a {
				width: 125px;
				height: 100px;
				/* overridden by kwicks but good for when JavaScript is disabled */
				margin-left: 5px;
				float: left;
			}

			#panel-1 { background-color: #53b388; }
			#panel-2 { background-color: #5a69a9; }
			#panel-3 { background-color: #c26468; }
			#panel-4 { background-color: #bf7cc7; }
		</style>
</head>
<body>



<div class="container">
<div class="nav_header">
	
	<?php  include 'head.php';?>
	<!--  white menu 部分 -->
	

	<!-- end white menu -->
	<!--  原定的menu功能，暂时删除 
<div class='kwicks kwicks-horizontal'>
			<a href='#' id='panel-1' title="首页:回到成绩管理系统首页"></a>
			<a href='#' id='panel-2' title="关于:获取关于土塘中学成绩管理系统的信息"></a>
			<a href='#' id='panel-3' title="联系我们:联系管理员"></a>
			<a href='#' id='panel-4' title="退出:退出成绩管理系统"></a>
		</div>
	-->
		</div>
		
<div class="main_cj_content">	

<p class="welcome"><?php echo $_SESSION['username']; ?>,欢迎您,以下是您可以使用的功能:</p><hr>
<br />
<br />



<br />

<fieldset>
<legend>
导入学生信息</legend>
<form  method="post"  action="insert_users.php"  enctype="multipart/form-data">

<label>选择文件上传：</label><input type="file" name="user_file" />
<input type="submit" value="上传" />&nbsp; &nbsp; &nbsp; <a href="./files/std/student.xls">示例文件下载</a></form>
</fieldset>
<br />
<br />
<br />
<fieldset>
<legend>分数文件上传
</legend>
<!-- 这里所有form都导向insert_user.php进行处理 -->
<form method="post"  action="insert_grades.php"  enctype="multipart/form-data">
<label>选择文件上传：</label>
<input type="file" name="grade_file" />
<input type="submit" value="上传" />&nbsp; &nbsp; &nbsp;<a href="./files/std/grades.xls">示例文件下载</a></form>
</fieldset>
<br />
<br />
<br />
<fieldset>
<legend>用户查找</legend>
<form action="search_user.php"  method="post" >
<label>输入用户名或账号进行查找：</label><input name="username" />
<input type="submit" value="查找" /></form>

</fieldset>
<?php include 'foot.php';?>
	</div>
	
		
	</div>
	

<!-- 取消方形menu 
		<script src='js/jquery.kwicks.js' type='text/javascript'></script>
		
		<script type='text/javascript'>
			$(function() {
				$('.kwicks').kwicks({
					size: 125,
					maxSize : 250,
					spacing : 5,
					behavior: 'menu'
				});
			});
		</script>
		-->
</body>
</html>
